package io.rehuo.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shiguang
 * @date 2022年09月12日 11:15
 */
@Data
@TableName("vn_user_apply")
public class ApplyEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 用户手机号码
     */
    private String userPhone;

    /**
     * 贷款金额
     */
    private Integer applyMoney;

    /**
     * 实际贷款金额
     */
    private Integer realApplyMoney;

    /**
     * 周期
     */
    private Integer applyCycle;

    /**
     * 服务费
     */
    private Integer applyServiceCharge;

    /**
     * 减免金额
     */
    private Integer reductionMoney;

    /**
     * 状态
     */
    private String status;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 催收人ID
     */
    private Long collectionBy;

    /**
     * 初审人员ID
     */
    private Long oneExamineBy;

    /**
     * 终审人员ID
     */
    private Long twoExamineBy;

    /**
     * 实际还款金额
     */
    private Integer alreadyRepayMoney;

    /**
     * 借款时间
     */
    private Date applyTime;

    /**
     * 应还时间
     */
    private String repaymentTime;

    /**
     * 实际还款时间
     */
    private Date alreadyRepayTime;

    /**
     * 逾期费用
     */
    private Integer overMoney;

    /**
     * 逾期天数
     */
    private Integer overDay;

    /**
     * 是否首次借贷  0：是  2：否
     */
    private String firstApply;

    private Date createTime;

    private Date updateTime;

    private Integer manageMoney;

    private Integer riskMoney;

    private Integer dayRate;

    private Integer expireRate;

    private Integer interestMoney;

    private Integer applyNum;

    @TableField(exist = false)
    private CompanyEntity companyEntity;

    /**
     * 提现时间
     */
    private Date cashOutTime;

    private String idCardNumber;

    /**
     * 银行卡号
     */
    private String bankCardNo;

    /**
     * 银行简称
     */
    private String simpleName;

    private String ipAddress;

    private String channel;
}
